﻿<Window x:Class="TriPhoto.SaisieRepertoire"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Sous répertoire" Height="138" Width="283"
    WindowStyle="ToolWindow"
    WindowStartupLocation="CenterScreen"
    xmlns:pd="clr-namespace:TriPhoto"
    xmlns:properties="clr-namespace:TriPhoto.Properties" ResizeMode="NoResize">
    <Window.Resources>
        <!-- Headers for metadata properties -->
        <Style x:Key="MetadataHeader" TargetType="{x:Type Label}">
            <Setter Property="Background">
                <Setter.Value>
                    <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5" >
                        <LinearGradientBrush.GradientStops>
                            <GradientStop Offset="0.5" Color="{x:Static SystemColors.AppWorkspaceColor}" />
                            <GradientStop Offset="2" Color="Transparent" />
                        </LinearGradientBrush.GradientStops>
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="Foreground" Value="White" />
            <Setter Property="FontWeight" Value="Bold" />
        </Style>

        <LinearGradientBrush x:Key="WindowGradient" StartPoint="0,0.3" EndPoint="1,0">
            <LinearGradientBrush.GradientStops>
                <GradientStop Color="#B2B6CAFF" Offset="0" />
                <GradientStop Color="#BFC3D5FF" Offset="0.1" />
                <GradientStop Color="#E0E4F0FF" Offset="0.3" />
                <GradientStop Color="#E6EAF5FF" Offset="0.5" />
                <GradientStop Color="#CFD7E2FF" Offset="0.6" />
                <GradientStop Color="#BFC5D3FF" Offset="0.8" />
                <GradientStop Color="#C4CBD8FF" Offset="1" />
            </LinearGradientBrush.GradientStops>
        </LinearGradientBrush>

        <Style TargetType="{x:Type pd:SaisieRepertoire}">
            <Setter Property="Background" Value="{DynamicResource WindowGradient}" />
        </Style>

    </Window.Resources>
    <DockPanel HorizontalAlignment="Center" Height="78" Width="200">
        <TextBlock DockPanel.Dock="Top" Text="{x:Static properties:Resources.SubdirectoryTextBloc}"/>
    <TextBox Name="NomRepertoireTextBox" DockPanel.Dock="Top" Width="200" TabIndex="1"></TextBox>
    <WrapPanel DockPanel.Dock="Bottom" HorizontalAlignment="Center" VerticalAlignment="Top" Height="43" Width="109">
      <Button Name="ValiderButton"  IsDefault="True" Click="Valider" Margin="10" TabIndex="2" Content="{x:Static properties:Resources.OkText}"/>
      <Button Name="AnnulerButton" IsCancel="True" Click="Annuler" Margin="10" TabIndex="3" Content="{x:Static properties:Resources.AnnuleText}"/>
    </WrapPanel>

  </DockPanel >
</Window>
